package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserLiveResDao;
import com.fqgj.xjd.user.entity.UserLiveResEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: yujianfu
* Date: 2021-11-15
* Time: 20:36:52.700
*/

@Repository
public class UserLiveResDaoImpl extends AbstractBaseMapper<UserLiveResEntity> implements UserLiveResDao {

    @Override
    public UserLiveResEntity selectOneByUserCode(String userCode) {
        Map<String, Object> param = new HashMap<>();
        param.put("userCode", userCode);
        return getSqlSession().selectOne(getStatement("selectOneByUserCode"), param);
    }
}